<template>
  <div class="index-container"></div>
</template>

<script>
  import checkPermission from '@/utils/permission'
  import PermissionType from '@/utils/PermissionType'
  export default {
    mounted() {
      if(checkPermission([PermissionType.yuanGong])){
        this.$router.push({ path : '/emporder/ordermgr'})
      }else if (checkPermission([PermissionType.keHu])){
        this.$router.push({ path : '/kehuorder/orderlist'})
      }else if (checkPermission([PermissionType.wlUser])){
        this.$router.push({ path : '/wluser/logistics'})
      }else if (checkPermission([PermissionType.sysAdmin])){
        this.$router.push({ path : '/sys/user'})
      }else{
        this.$router.push({ path : '/404'})
      }
    },
    methods: {
    },
  }
</script>
<style lang="scss" scoped>
</style>
